hip.util.string

Undocumented in source.

Public Imports

hip.util.to_string_range
public import hip.util.to_string_range;
Undocumented in source.

Members

Aliases

countUntil
alias countUntil = indexOf
Undocumented in source.

Functions

after
string after(TString str, TString afterWhat)

Same thing as startsWith, but returns the part after the afterWhat

between
inout(TString) between(TString str, TString left, TString right, int start)

Returns the content that is between left and right:

count
int count(TString str, TString countWhat)
Undocumented in source. Be warned that the author may not have intended to support it.
findAfter
inout(TString) findAfter(TString str, TString afterWhat, int startIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
fromStringz
string fromStringz(char* cstr)
Undocumented in source. Be warned that the author may not have intended to support it.
getNumericEnding
string getNumericEnding(string s)

This function will get the number at the end of the string. Used when you have numbered items such as frames: walk_01, walk_02, etc

indexOf
int indexOf(TString str, TString toFind, int startIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
indexOf
int indexOf(TChar[] str, TChar ch, int startIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
isAlpha
bool isAlpha(TChar c)
Undocumented in source. Be warned that the author may not have intended to support it.
isEndOfLine
bool isEndOfLine(TChar c)
Undocumented in source. Be warned that the author may not have intended to support it.
isLowercase
bool isLowercase(TChar c)
Undocumented in source. Be warned that the author may not have intended to support it.
isNumber
bool isNumber(TString str)
Undocumented in source. Be warned that the author may not have intended to support it.
isNumeric
bool isNumeric(TChar c)
Undocumented in source. Be warned that the author may not have intended to support it.
isUpperCase
bool isUpperCase(TChar c)
Undocumented in source. Be warned that the author may not have intended to support it.
isWhitespace
bool isWhitespace(TChar c)
Undocumented in source. Be warned that the author may not have intended to support it.
join
TString join(TString[] args, TString separator)
Undocumented in source. Be warned that the author may not have intended to support it.
lastIndexOf
int lastIndexOf(TString str, TString toFind, int startIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
lastIndexOf
int lastIndexOf(TChar[] str, TChar ch, int startIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
pathSplliter
TString[] pathSplliter(TString str)
Undocumented in source. Be warned that the author may not have intended to support it.
repeat
TString repeat(TString str, size_t repeatQuant)
Undocumented in source. Be warned that the author may not have intended to support it.
replaceAll
TString replaceAll(TString str, TChar what, TString replaceWith)
Undocumented in source. Be warned that the author may not have intended to support it.
replaceAll
TString replaceAll(TString str, TString what, TString replaceWith)
Undocumented in source. Be warned that the author may not have intended to support it.
split
TChar[][] split(TChar[] str, TChar separator)
Undocumented in source. Be warned that the author may not have intended to support it.
split
TString[] split(TString str, TString separator)
Undocumented in source. Be warned that the author may not have intended to support it.
splitRange
auto splitRange(TString str, TStrSep separator)
Undocumented in source. Be warned that the author may not have intended to support it.
startsWith
bool startsWith(TString str, TString withWhat)
Undocumented in source. Be warned that the author may not have intended to support it.
to (from hip.util.conv)
TO to(FROM f) via public import hip.util.conv : to;
Undocumented in source.
toDefault
T toDefault(string s, T defaultValue)
Undocumented in source. Be warned that the author may not have intended to support it.
toLowerCase
char toLowerCase(char c)
Undocumented in source. Be warned that the author may not have intended to support it.
toLowerCase
string toLowerCase(string str)
Undocumented in source. Be warned that the author may not have intended to support it.
toStringz
const(char)* toStringz(string str)
Undocumented in source. Be warned that the author may not have intended to support it.
toUTF32
dstring toUTF32(string encoded)
Undocumented in source. Be warned that the author may not have intended to support it.
toUpper
char toUpper(char c)
Undocumented in source. Be warned that the author may not have intended to support it.
toUpper
string toUpper(string str)
Undocumented in source. Be warned that the author may not have intended to support it.
trim
TString trim(TString str)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

String
struct String

RefCounted, @nogc string, OutputRange compatible,

StringBuilder
struct StringBuilder
Undocumented in source.

Meta